import java.awt.*;
import javax.swing.*;
public class SliderPanel extends JPanel
{ 
    private ColorPanel _colorp;
    private ValueHolder _red, _green, _blue;

    public SliderPanel(ValueHolder red, ValueHolder green, ValueHolder blue, ColorPanel cp)
    {
        _red = red;
        _green = green;
        _blue = blue;
        _colorp = cp;
        this.setLayout(new GridLayout(0,1));
        this.add(new SingleSliderPanel(_red, "The RED slider", _colorp));
        this.add(new SingleSliderPanel(_green, "The GREEN slider", _colorp));
        this.add(new SingleSliderPanel(_blue, "The BLUE slider", _colorp));
    }
}
